import request from '@/utils/request'

export function listSkillRefund(query) {
    return request({
        url: '/hps/enrollSkill/refundList',
        method: 'get',
        params: query
    })
}

// 查询报名信息详细
export function getEnroll(id) {
    return request({
        url: '/hps/enrollSkill/' + id,
        method: 'get'
    })
}

// 退赛审核不通过
export function checkOut(data) {
    return request({
        url: '/hps/enrollSkill/checkout',
        method: 'put',
        data: data
    })
}

// 退赛批量审核通过
export function checkOutBatch(id) {
    return request({
        url: '/hps/enrollSkill/checkoutbatch/'+ id,
        method: 'put'
    })
}

//培训机构退款审核批量通过
export function checkOutBatchByDept(id) {
    return request({
        url: '/hps/enrollSkill/checkoutbatchDept/'+ id,
        method: 'put'
    })
}

// 通过机构账号去查询机构id
export function findDeptId(userName) {
    return request({
        url: '/hps/enrollSkill/findDeptIdByName/'+ userName,
        method: 'get'
    })
}

// 导出报名信息
export function exportEnrollSkill(query) {
    return request({
        url: '/hps/enrollSkill/export',
        method: 'get',
        params: query
    })
}
